<?php $this->headScript()->appendFile(HTTP_HOST.'/js/site-admin/objectType.js'); ?>
<a href="<?=$this->url(array('controller' => 'object-type', 'action' => 'edit', 'addnew' => 1))?>"><?=$this->translate('Добавить тип объекта')?></a><br />
<?php if (sizeof($this->otypes) > 0) { ?>
<table border="1">
	<?php 
	$i = 1;
	foreach ($this->otypes as $k => $v) { ?>
		<tr>
			<td><?=$i++;?></td>
			<td><a href="<?=$this->url(array('action' => 'edit', 'id' => $k))?>"><?=$v['Name']?>(<?=$v['ID']?>)</a></td>
			<td><?=$v['Active'] == 0 ? $this->translate('Неактивная') : $this->translate('Активная')?></td>
			<td><div id="<?=$v['ID']?>" class="del_ot" rel="<?=$v['Name']?>" ><img src="<?=HTTP_HOST; ?>/images/controll/del.png" alt="" style="position: relative; float: left; cursor: pointer; width: 20px; height: 20px; border: solid 1px;"/></div></td>
		</tr>
	<?php } ?>
</table>
<?php } ?>